from django.shortcuts import render
from rest_framework import generics

from user_app.models import FreeCourse
from freecourse_app.serializer import FreeCourseSerializer

# Create your views here.
class FreeCourseView(generics.ListAPIView):
    queryset = FreeCourse.objects.all()
    serializer_class = FreeCourseSerializer